<?php
/**
 * communit.as
 * @copyright (C)2008 Jaybill McCarthy, All Rights Reserved.
 * @category communitas
 * @package communitas
 * @author Jaybill McCarthy
 * @link http://communit.as communit.as
 * @license http://communit.as/docs/license License
 */

/**
 *
 * @package communitas
 * @subpackage forum_models
 * @license http://communit.as/docs/license License 
 */
 
class Subjects extends Cts_Db_Table_Abstract
{
    protected $_name 	= 'forum_subjects';
    protected $_primary = 'id';
    
	public function getSubjectsArray(){
    	$subjects = array();    	
    	$db_subjects = $this->fetchAll(null,'title');    	
    	foreach($db_subjects as $subject){
    		$subjects[$subject->id] = $subject->title;
    	}
    
    	return $subjects;
    }
    
    
}